class Solution:
	# @param {integer} rowIndex
	# @return {integer[]}
	def getRow(self, rowIndex):
		if rowIndex == 0:
			return [1]
		ans = [self.C(rowIndex, i) for i in range((rowIndex+2)/2)]
		ans = ans + ans[(rowIndex-1)/2::-1]
		return ans

	def C(self, base, tar):
		ans = 1
		for i in [base - x for x in range(tar)]:
			ans = ans * i
		for i in range(1, tar + 1):
			ans = ans / i
		return ans

if __name__ == '__main__':
	so = Solution()
	print so.getRow(0)